package com.woniu.woniuproject.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 功能描述:<br>
 * 〈〉
 *
 * @author wugd
 * @create 2020/11/9
 * @since 1.0.0
 */
@Configuration
public class DataSourceConfig {
    @Bean
    @ConfigurationProperties(value = "spring.datasource")
    public DruidDataSource druidDataSource(){
        DruidDataSource druidDataSource = new DruidDataSource();
        return druidDataSource ;
    }
}
